<template>
  <div class="mx-auto w-1/2">
    <a-typography-title :level="5" class="line-clamp-1 text-center !text-[#CE101F] pt-3">品牌优选排行榜</a-typography-title>
    <a-flex justify="center" gap="middle" wrap="wrap">
      <a-row :gutter="20">
        <a-col :span="12">
          <a-flex vertical v-for="(item, index) in list" :key="index" class="my-2">
            <a-typography-text :level="5" class="py-1 !rounded-lg text-center bg-[#3D3D3D] !text-[#fff]">{{
              item.title
            }}</a-typography-text>

            <a-row :gutter="10" class="my-2 px-2">
              <a-col :span="8" class="text-center">
                <a-typography-link href="#">
                  <a-image width="100%" :src="item.img1" :preview="false" />
                </a-typography-link>
              </a-col>
              <a-col :span="8" class="text-center">
                <a-typography-link href="#">
                  <a-image width="100%" :src="item.img2" :preview="false" />
                </a-typography-link>
              </a-col>
              <a-col :span="8" class="text-center">
                <a-typography-link href="#">
                  <a-image width="100%" :src="item.img3" :preview="false" />
                </a-typography-link>
              </a-col>
            </a-row>

            <a-typography-text class="px-2">
              <a-typography-text class="text-[12px] text-[#848484]">{{ item.desc1 }}</a-typography-text>
              <a-typography-link href="#">
                <a-typography-text class="text-[#D71252] text-[12px] border-0 border-b border-dashed border-red-500">{{
                  item.desc2
                }}</a-typography-text>
              </a-typography-link>
              <a-typography-text class="text-[12px] text-[#848484]">{{ item.desc3 }}</a-typography-text>
              <a-typography-link href="#" v-for="(it, ind) in item.desc4" :key="ind">
                <a-typography-text class="text-[#D71252] text-[12px] border-0 border-b border-dashed border-red-500">{{
                  it
                }}</a-typography-text>
                <a-typography-text>{{ ind === item.desc4.length - 1 ? '...' : '，' }}</a-typography-text>
              </a-typography-link>
              <a-typography-link href="#">
                <a-typography-text class="text-[12px] text-[#848484]"> 详情>></a-typography-text>
              </a-typography-link>
            </a-typography-text>
          </a-flex>
        </a-col>
        <a-col :span="12">
          <a-flex vertical v-for="(item, index) in list2" :key="index" class="my-2">
            <a-typography-text :level="5" class="py-1 !rounded-lg text-center bg-[#3D3D3D] !text-[#fff]">{{
              item.title
            }}</a-typography-text>

            <a-row :gutter="10" class="my-2 px-2">
              <a-col :span="8" class="text-center">
                <a-typography-link href="#">
                  <a-image width="100%" :src="item.img1" :preview="false" />
                </a-typography-link>
              </a-col>
              <a-col :span="8" class="text-center">
                <a-typography-link href="#">
                  <a-image width="100%" :src="item.img2" :preview="false" />
                </a-typography-link>
              </a-col>
              <a-col :span="8" class="text-center">
                <a-typography-link href="#">
                  <a-image width="100%" :src="item.img3" :preview="false" />
                </a-typography-link>
              </a-col>
            </a-row>

            <a-typography-text class="px-2">
              <a-typography-text class="text-[12px] text-[#848484]">{{ item.desc1 }}</a-typography-text>
              <a-typography-link href="#">
                <a-typography-text class="text-[#D71252] text-[12px] border-0 border-b border-dashed border-red-500">{{
                  item.desc2
                }}</a-typography-text>
              </a-typography-link>
              <a-typography-text class="text-[12px] text-[#848484]">{{ item.desc3 }}</a-typography-text>
              <a-typography-link href="#" v-for="(it, ind) in item.desc4" :key="ind">
                <a-typography-text class="text-[#D71252] text-[12px] border-0 border-b border-dashed border-red-500">{{
                  it
                }}</a-typography-text>
                <a-typography-text>{{ ind === item.desc4.length - 1 ? '...' : '，' }}</a-typography-text>
              </a-typography-link>
              <a-typography-link href="#">
                <a-typography-text class="text-[12px] text-[#848484]"> 详情>></a-typography-text>
              </a-typography-link>
            </a-typography-text>
          </a-flex>
        </a-col>
      </a-row>
    </a-flex>
  </div>
</template>

<script setup>
const list = [
  {
    title: '糖果牌子TOP',
    img1: 'https://picsum.photos/id/1/100/50',
    img2: 'https://picsum.photos/id/2/100/50',
    img3: 'https://picsum.photos/id/3/100/50',
    desc1: '糖果品牌哪些优秀?987品牌优选从',
    desc2: '278',
    desc3: '个糖果参选的牌子中根据大数据评出的牌子分别是',
    desc4: ['金桂坊食品', '嘉云', '哈瑞宝'],
  },
  {
    title: '枕头牌子TOP',
    img1: 'https://picsum.photos/id/4/100/50',
    img2: 'https://picsum.photos/id/5/100/50',
    img3: 'https://picsum.photos/id/6/100/50',
    desc1: '枕头品牌哪些优秀?987品牌优选从',
    desc2: '737',
    desc3: '个枕头参选的牌子中根据大数据评出的牌子分别是',
    desc4: ['水星家纺', '睡眶博士', '诺伊曼'],
  },
];
const list2 = [
  {
    title: '短裙牌子TOP',
    img1: 'https://picsum.photos/id/31/100/50',
    img2: 'https://picsum.photos/id/32/100/50',
    img3: 'https://picsum.photos/id/33/100/50',
    desc1: '短裙品牌哪些优秀?987品牌优选从',
    desc2: '357',
    desc3: '个短裙参选的牌子中根据大数据评出的牌子分别是 ',
    desc4: ['ONLY', '拉夏贝尔', '太平鸟'],
  },
  {
    title: '枸杞牌子TOP',
    img1: 'https://picsum.photos/id/34/100/50',
    img2: 'https://picsum.photos/id/35/100/50',
    img3: 'https://picsum.photos/id/36/100/50',
    desc1: '枸杞品牌哪些优秀?987品牌优选从',
    desc2: '504',
    desc3: '个枸杞参选的牌子中根据大数据评出的牌子分别是',
    desc4: ['好想你', '福东海', '富昌'],
  },
];
</script>
<style></style>
